home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Interprogram Messaging Manager / IPM MessageBoard / queues.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-23  |  465 b   |  28 lines  |  [TEXT/MPS ]

  1. /*
  2.     Queuing Example
  3.     Steve Falkenburg, MacDTS, Apple Computer
  4.     3/11/92
  5. */
  6.  
  7. #ifndef __QUEUES__
  8. #define __QUEUES__
  9.  
  10. struct MyQElem {
  11.     QElemPtr qLink;
  12.     short qType;
  13.     IPMQueueRef pmQ;
  14.     IPMSeqNum pmSeq;
  15.     unsigned char noteType;
  16. };
  17.  
  18. typedef struct MyQElem MyQElem, *MyQElemPtr;
  19.  
  20. void InitQueues(void);
  21.  
  22. MyQElemPtr GetUnusedQBlock(void);
  23. void RecycleFreeQBlock(MyQElemPtr qBlock);
  24. MyQElemPtr GetCompletedQBlock(void);
  25. void StoreCompletedQBlock(MyQElemPtr qBlock);
  26.  
  27. #endif
  28.